package com.bs.manager04.mapper;

import com.bs.manager04.entity.Rolemenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 角色菜单关联表 Mapper 接口
 * </p>
 *
 * @author yao
 * @since 2022-12-17
 */
public interface RolemenuMapper extends BaseMapper<Rolemenu> {

    //给角色分配对应的菜单权限
    //删除该角色对应的菜单权限
    public int delRoleID(String roleid);

    //给角色分配菜单权限
    public int addMenus(@Param("roleid") String roleid,@Param("menuids") String[] menuids);
}
